package cn.ggcms.cms.biz;

import java.util.List;

import cn.ggcms.cms.dao.MessagesDao;
import cn.ggcms.cms.vo.Messages;

public class MessagesBiz implements MessagesDao {

	private MessagesDao messagesDao  ;
	
	public void setMessagesDao(MessagesDao messagesDao) {
		this.messagesDao =messagesDao;
	}

	public boolean doDeleteMessagesById(int id) {
		return this.messagesDao.doDeleteMessagesById(id);
	}

	public boolean doInsertMessages(Messages messages) {
		return this.messagesDao.doInsertMessages(messages);
	}

	public Messages finMessagesById(int id) {
		return this.messagesDao.finMessagesById(id);
	}

	public List<Messages> finMessagess() {
		return this.messagesDao.finMessagess();
	}

	public Messages findMessages(Messages messages) {
		return this.messagesDao.findMessages(messages);
	}

	public boolean doUpdateMessages(Messages messages) {
		return this.messagesDao.doUpdateMessages(messages);
		
	}
	public List<Messages> findCMessagesByPage( int firstResult,
			int maxResults) {
		return this.messagesDao.findCMessagesByPage( firstResult, maxResults);
	}

	public int getSize() {
		return this.messagesDao.getSize();
	}
	
}
